home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Developers / MW MPW Binaries 1.1.1a2 / mwcPPC / MWCIncludes / setjmp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-07-18  |  921 b   |  44 lines  |  [TEXT/MMCC]

  1. /************************************************************************/
  2. /*    Project...:    Standard ANSI-C Library                                    */
  3. /*    Name......:    setjmp.h                                                */
  4. /*    Purpose...:    standard ANSI header file                                */
  5. /*  Copyright.: ©Copyright 1994 by metrowerks inc. All rights reserved. */
  6. /************************************************************************/
  7.  
  8. #ifndef __SETJMP__
  9. #define __SETJMP__
  10.  
  11. #if __MWERKS__
  12. #pragma options align=mac68k
  13. #endif
  14.  
  15. #ifdef    powerc
  16. typedef    long *jmp_buf[70];
  17. #define    setjmp(jmp_buf)            __setjmp(jmp_buf)
  18. #else
  19. typedef long *jmp_buf[12];        //    D3-D7,PC,A2-A4,A6,SP,__local_destructor_chain
  20. #endif
  21.  
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25.  
  26. #ifdef    powerc
  27. int    __setjmp(jmp_buf);
  28. void longjmp(jmp_buf,int);
  29. #else
  30. int setjmp(jmp_buf);
  31. void longjmp(jmp_buf,int);
  32. #endif
  33. void __longjmp_ldestr(jmp_buf,int);
  34.  
  35. #ifdef __cplusplus
  36. }
  37. #endif
  38.  
  39. #if __MWERKS__
  40. #pragma options align=reset
  41. #endif
  42.  
  43. #endif
  44.